<template>
	<Table :Config="Config"></Table>
</template>
<script>
var dict_IsDel = [
	{ value: 0, label: '正常' },
	{ value: 1, label: '删除' },
];

var columns = [
	{ title: '操作', dataIndex: 'action', width: 200, hidden: false, add: false, edit: false },
	{ title: '自增id', dataIndex: 'menu_id', iskey: true, width: 150, hidden: false, add: false, edit: false, type: 'int' },
	{ title: '添加时间', dataIndex: 'addtime', iskey: false, width: 165, hidden: true, add: false, edit: false, type: 'datetime' },
	{ title: '添加时间戳', dataIndex: 'addtime_stamp', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'long' },
	{ title: '添加用户', dataIndex: 'add_userid', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'int' },
	{ title: '修改时间', dataIndex: 'update_lasttime', iskey: false, width: 165, hidden: true, add: false, edit: false, type: 'datetime' },
	{ title: '修改时间戳', dataIndex: 'update_lasttime_stamp', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'long' },
	{ title: '最后修改人', dataIndex: 'last_userid', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'int' },
	{ title: '是否删除', dataIndex: 'isdel', iskey: false, width: 150, hidden: true, add: false, edit: false, type: 'int' },

	{ title: '菜单父ID', dataIndex: 'menu_pid', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'int' },
	{ title: '菜单名称', dataIndex: 'menu_name', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'string' },
	{ title: '菜单地址', dataIndex: 'menu_url', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'string' },
	{ title: '菜单层级', dataIndex: 'menu_level', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'int' },
	{ title: '是否叶子节点', dataIndex: 'is_leaf', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'int' },
	{ title: '图标', dataIndex: 'menu_icon', iskey: false, width: 150, hidden: false, add: true, edit: true, type: 'string' },
	{ title: '-', dataIndex: '占位' },
];

export default {
	components: {},
	data() {
		return {
			Config: {
				getPageUrl: '/manage/SystemMenu/GetListByPage',
				getUrl: '/manage/SystemMenu/GetById',
				addUrl: '/manage/SystemMenu/Insert',
				editUrl: '/manage/SystemMenu/Update',
				delUrl: '/manage/SystemMenu/DeleteById',

				columns: columns,
				page: 1,
				pageSize: 5,

				navList: [
					{ to: '/', name: '首页' },
					{ to: '/', name: '用户' },
					{ to: '', name: '菜单管理' },
				],
				//action: [{ name: '外部', funName: 'fun_Event1', type: false }],
			},
		};
	},
	methods: {
		fun_Event1(record) {
			var temp = record;
		},
	},
};
</script>
